<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<script>
		/*for (var i = 0; i < 10; i++) {
			for (var j = 11; j > i + 1; j--) {
				document.write('* &nbsp  ');
			}
			document.write('<br>');
		}
		for (var i = 0; i < 10; i++) {
			for (var j = 0; j < i; j++) {
				document.write('* &nbsp  ');
			}
			document.write('<br>');
		}
		for (var i =0;i < 10; i++) {
			for (var j = 0; j < 10-i; j++) {
				document.write('* &nbsp  ');
			}
			document.write('<br>');
		}*/
		/*document.write('<table>');
		for(var i=1;i<=9;i++){
		document.write('<tr>');	
		for(var j=1;j<=i;j++){
		document.write('<td>');
		document.write(i+ 'x' + j + '=' + (i*j));
		document.write('&nbsp&nbsp&nbsp&nbsp&nbsp');
		document.write('</td>');	
		}		
		document.write('</tr>');		
		}
		document.write('</table>');*/
		//Math.pow(被平方数,幂指数)
	  
		/*var a,b,c;
		for(var i=100;i<1000;i++){
			a=parseInt(i/100);
			b=parseInt((i%100)/10);
			c=parseInt((i%100)%10);
			if(Math.pow(a,3)+Math.pow(b,3)+Math.pow(c,3)==i)
			{	console.log(i);}
		
		}*/
		
		var a,b,c,d,e;
		for(var i=10000;i<100000;i++){
			a=parseInt(i/10000);
			b=parseInt((i%10000)/1000);
			c=parseInt((i%10000)%1000/100);
			d=parseInt((i%10000)%1000%100/10);
			e=parseInt((i%10000)%1000%100%10);
			if(Math.pow(a,4)+Math.pow(b,4)+Math.pow(c,4)+Math.pow(d,4)+Math.pow(e,4)==i)
			{	console.log(i);}
		
		}
		//innerHTML:
		
		
	</script>
</body>
</html>